package com.qd.panda.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;


/**
 * 套餐列表
 *
 * @author sjk
 */
@Getter
@Setter
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@TableName("panda_plan_publish_list")
public class PlanPublishList extends Model<PlanPublishList> implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "publish_list_id", type = IdType.ASSIGN_ID)
    private String publishListId;
    /**
     * 序号
     */
    @TableField("idx")
    private Integer idx;
    /**
     * 套餐发布ID
     */
    @TableField("publish_id")
    private String publishId;
    /**
     * 套餐编码
     */
    @TableField("plan_code")
    private String planCode;

    public void freeData() {
        this.publishListId = null;
        this.idx = null;
        this.publishId = null;
        this.planCode = null;
    }

}
